package org.lilred.nzbberry.ui;

import org.lilred.nzbberry.config.Resizer;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.Manager;

public class BannerManager extends Manager {	
	public BannerManager() {
		super(0);
	}

	protected void sublayout(int width, int height) {
		for (int i = 0; i < getFieldCount(); i++) {
			Field f = getField(getFieldCount() - 1 - i);
			layoutChild(f, width, height);
			setPositionChild(f, width - (1 + i) * f.getWidth() - Resizer.resize(10), 0);
		}
		setExtent(width, height);
	}
}
